<div class="panel one-box">
	<form method="post" action="{:U('Results/search')}">
		<div class="table-tools clearfix">
			<div class="form-inline">
				<div class="form-group">
					<div class="field">
						起始日期：<input type="text" class="input datetimepicker" size="20" name='StartDate' value='{$arr["start"]}' />
						结束日期：<input type="text" class="input datetimepicker" size="20" name='EndDate' value='{$arr["end"]}' />
						销售客服：<input type="text" class="input" name='staff' size="20" vaule='{$arr["staff"]}' />
					</div>
				</div>
				<div class="form-button">
					<input type='submit' name='search' class="button bg-blue button-small" value='查询' />
				</div>
			</div>
		</div>
	</form>
	<div class="table-responsive">
		<table id="table" class="table table-hover">
			<tbody>
				<tr align="center">
					<th width="100">编号</th>
					<th width="*">付款日期</th>
					<th width="*">付款方式</th>
					<th width="*">付款金额</th>
					<th width="*">付款名称</th>
					<th width="*">服务级别</th>
					<th width="*">销售客服</th>
					<th width="*">客户Q Q</th>
					<th width="*">截图付款</th>
					<th width="*">备&nbsp;&nbsp;注</th>
					<th width="*">审核状态</th>
					<th width="130">操作</th>
				</tr>
				
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.time}</td>
					<td>{$vo.type}</td>
					<td>{$vo.price}</td>
					<td>{$vo.name}</td>
					<td>{$vo.level}</td>
					<td>{$vo.kf}</td>
					<td>{$vo.kh}</td>
					<td><a href="__ROOT__/Uploads/{$vo.photo}" target="_blank"><span class="tag bg-sub">查看</span></a></td>
					<td>{$vo.content}</td>
					<td>
						<if condition="$vo.status == 0">
							<span class="tag bg-dot">未审核</span>
						<else/>
							<span class="tag bg-sub">已审核</span>
						</if>
					</td>
					<td>
						<!--<a class="button bg-blue button-small icon-th" href="#" title="管理"></a>-->
						<a class="button bg-blue button-small icon-pencil" href="{:U('Results/edit',array('id'=>$vo['id']),'')}" title="修改"></a>
						<a class="button bg-red button-small icon-trash-o js-del" id="del" data="{$vo.id}" href="javascript:;" title="删除"></a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
	</div>
	<div class="panel-foot table-foot clearfix">
		总价：{$arr["price"]}元
		<ul class="pagination pagination-small">
		  {$page}
		</ul>    
	</div>
</div>

<script type="text/javascript">
    // ajax 提交表单
    $(document).ready(function(){
        $('a[id="del"]').click(function(){    // 提交按钮触发事件
            var url = "del/id/" + $(this).attr("data");    // 获取 表单的 提交地址
            //询问框
            layer.confirm('你确认执行删除操作？', {
                icon: 4,
                btn: ['确定','取消'], //按钮
            }, function(){
                $.get(url,function(data){
                    if(data['status'] == 1){    // 处理成功后
                        layer.msg(data['info'], {icon: 1});
                    } else {
                        layer.msg(data['info'], {icon: 0});
                    }
                    // 等待1秒后刷新当前页面
                    setTimeout("window.location.reload()",1000);
                });
            }, function(){
                layer.close();
            });
        });
    });
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/lq.datetimepick.css"/>
<script src='__PUBLIC__/js/selectUi.js' type='text/javascript'></script>
<script src='__PUBLIC__/js/lq.datetimepick.js' type='text/javascript'></script>
<script type="text/javascript">
$(function (){
	$(".datetimepicker").on("click",function(e){
		e.stopPropagation();
		$(this).lqdatetimepicker({
			css : 'datetime-day',
			dateType : 'D',
			selectback : function(){

			}
		});

	});
});
</script>